nested VMX: don't ignore mapping errors
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2013 08:39:01 +0000 (09:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2013 08:39:01 +0000 (09:39 +0100)
commite02b14e531a95399fc9d8647ec3cc6f310a7d455
tree28d7bcf6d39bff74775a15d0f7d71795e2bc9dbf
parent6757efe1bf50ac7ff68fa4dd7d9333529f70ae9a
nested VMX: don't ignore mapping errors

Rather than ignoring failures to map the virtual VMCS as well as MSR or
I/O port bitmaps, convert those into failures of the respective
instructions (avoiding to dereference NULL pointers). Ultimately such
failures should be handled transparently (by using transient mappings
when they actually need to be accessed, just like nested SVM does).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
xen/arch/x86/hvm/vmx/vvmx.c